package com.yunxun.coinmessage.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

public class Content {
    private  int con_id;
    private String con_article;
    private Long create_time;
    @NotNull(message = "内容来源不能为null")
    private String con_addr;
    private String con_author;
    @NotNull(message = "标题不能为null")
    private String con_title;
    private String sort;
    private int status;
    private Integer coin_id;
    private Integer exchange_id;
    @NotEmpty(message = "栏目名称不能为空字符串")
    private Integer program_id;
    private String verifycode;
    private String format_time;
    private String id;//该属性是请求内容服务器得到，当要将该资讯存入后台数据库时，需要告诉内容服务器修改这篇资讯（靠id找到该资讯)的状态为已发布

    public Content() {
        con_author = "";
        sort = "";
        coin_id = 0;
        exchange_id = 0;
        status=1;
    }

    public String getFormat_time() {
        return format_time;
    }

    public void setFormat_time(String format_time) {
        this.format_time = format_time;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getVerifycode() {
        return verifycode;
    }

    public void setVerifycode(String verifycode) {
        this.verifycode = verifycode;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public Integer getCoin_id() {
        return coin_id;
    }

    public void setCoin_id(Integer coin_id) {
        this.coin_id = coin_id;
    }

    public Integer getExchange_id() {
        return exchange_id;
    }

    public void setExchange_id(Integer exchange_id) {
        this.exchange_id = exchange_id;
    }

    public Integer getProgram_id() {
        return program_id;
    }

    public void setProgram_id(Integer program_id) {
        this.program_id = program_id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCon_article() {
        return con_article;
    }

    public void setCon_article(String con_article) {
        this.con_article = con_article;
    }

    public String getCon_title() {
        return con_title;
    }

    public void setCon_title(String con_title) {
        this.con_title = con_title;
    }

    public int getCon_id() {
        return con_id;
    }

    public void setCon_id(int con_id) {
        this.con_id = con_id;
    }

    public Long getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Long create_time) {
        this.create_time = create_time;
    }

    public String getCon_addr() {
        return con_addr;
    }

    public void setCon_addr(String con_addr) {
        this.con_addr = con_addr;
    }

    public String getCon_author() {
        return con_author;
    }

    public void setCon_author(String con_author) {
        this.con_author = con_author;
    }
}
